package springbook.common;

import java.sql.DriverManager;
import java.sql.SQLException;

import springbook.user.dao.UserDao;

import com.mysql.jdbc.Connection;

public class NConnect extends UserDao{
	
	public Connection getConnection() throws ClassNotFoundException, SQLException{

		Class.forName("com.mysql.jdbc.Driver");
		Connection c = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/spring", "hjdb", "hong00");

		return c;
	}

}
